import Button from './button'
import Overlay from './overlay'
import Popup from './popup'

const cList = [Button, Overlay, Popup]

const install = function (Vue) {
	cList.forEach((c) => {
		const { name } = c
		if (name) {
			Vue.component(`Ak${name}`, c)
			Vue.component(`ak-${name.toLowerCase()}`, c)
		}
	})
}

export { Button, Overlay, Popup }

export default {
	Button,
	Overlay,
	Popup,
	install
}
